package me.aip.mov.util;


import org.apache.commons.lang3.StringUtils;

import javax.servlet.http.HttpServletRequest;

public class RequestUtil {

   public  static String getUserId(HttpServletRequest request){
       String token = request.getHeader("Authorization");
       if (StringUtils.isBlank(token)){
           return null;
       }
       return JwtUtil.getUserId(token);
   }
}
